<h1>{L_title}
<!-- OPTION value_name -->
: {value_name}
<!-- END OPTION value_name -->
</h1>
<div id="action">
<a href="{photogals_list}" title="{L_back_list}">{L_back_list}</a> 
<!-- OPTION photogals_delete -->
<a href="javascript:confirmation('{photogals_delete}');" title="{L_delete}"><img src="../tpl_image/button_drop.png" border="0" alt="{L_delete}" /></a>
<!-- END OPTION photogals_delete -->
</div>


<!-- OPTION L_message -->
<p class="message">{L_message}</p>
<!-- END OPTION L_message -->
				  
<!-- OPTION erreur -->
<div id="erreur">
<p class="erreur-title">{L_erreur}</p>
<ol class="erreur">  
<!-- LOOP erreur -->
<li>{message}</li>
<!-- END LOOP erreur -->
</ol>
</div>
<!-- END OPTION erreur -->

<!-- OPTION show_form -->
<p class="field_required">* {L_field_required}</p>
<form name="form_photogals" action="{form_action}" method="post" id="formulaire">
  <table>
    <tr> 
      <th class="field_required">{L_name} *</th>
      <td><input name="name" type="text" value="{value_name}" size="40"> </td>
      <td rowspan="3" style="text-align: right;width:260px">
        <div id="divphoto">  
    	  <!-- END OPTION value_file --><img src="{value_file}" id="img_photo" width="200" /><!-- END OPTION value_file -->
   	    </div>
      </td>
    </tr>
    <tr>
      <th valign="top">{L_description}</th>
      <td><textarea name="description" cols="35" rows="4" id="description">{value_description}</textarea></td>
    </tr>
    <tr>
      <th valign="top">{L_file}</th>
      <td>
        <input type="text" name="file" id="file" size="40" value="{value_file}" onchange="show_image('divphoto','img_photo',this.value);" />
        <a href="#" onclick="pop('{link_choose_image}','750','600');" class="choose_image">{L_choose_image}</a>
      </td>
    </tr>
  </table>
<div id="boutons">
<input type="hidden" name="id" value="{value_id}" />
<input type="submit" name="submit" value="{L_valider}" />
</div>  
</form>
<!-- END OPTION show_form -->

<script type="text/javascript">var addImageUrl = '{form_action}';</script>
<h1>G&eacute;rer les images</h1>
<div id="action">
    <a id="addImageBtn" href="#addImage" title="Ajouter une image">Ajouter une image</a> 
</div>
<div id="addImage" style="display: none;">
    <form id="addImageForm" name="addImageForm" method="post">
        <p>
            <label for="imageDesc" style="float: left;display: inline-block; width: 150px; text-align: right; margin-right: 15px; line-height: 28px;">Description de l'image</label>
            <textarea name="imagedescription" id="imageDesc" rows="5" cols="32"></textarea>
        </p>
        <p>
            <label for="file2" style="float: left;display: inline-block; width: 150px; text-align: right; margin-right: 15px;line-height: 28px;">Choisir la photo</label>
            <input type="text" name="phototoadd" id="file2" size="36" readonly="true" onchange="show_image('divphototoadd','img_photo_to_add',this.value);" onclick="pop('{link_choose_image_to_add}','750','600');" />
            <a href="#" onclick="pop('{link_choose_image_to_add}','750','600');" class="choose_image">{L_choose_image}</a>
            <div id="phototoadd"><img id="img_photo_to_add" width="150" /></div>
        </p>
        <input type="hidden" name="addimage" value="1" />
        <input type="hidden" name="imagecat" value="{value_id}" />
        <p style="text-align: center;">
            <input type="submit" name="submit" value="{L_valider}" />
            <button class="closeFB">Annuler</button>
        </p>
        <p style="padding: 10px;background: #FFFF80;border: 1px solid #D59500;display: none;" id="message"></p>
    </form>
</div>
<p></p>
<!-- OPTION photogalsimages -->
<table style="width: 100%;">
    <thead>
        <tr>
            <th>Image</th>
            <th>Description</th>
            <th>Actions</th>
        </tr>
    </thead>
    <!-- LOOP photogalsimages -->
    <tr class="ligne{mod}">
        <td style="text-align: center;"><img src="{homeimg}" height="75" /></td>
        <td>{description}</td>
        <td style="text-align: center;">
            <!-- OPTION photogalsimages_delete -->
            <a href="javascript:confirmation('{photogalsimages_delete}');"><img src="../tpl_image/button_drop.png" border="0"></a>
            <!-- END OPTION photogalsimages_delete -->
        </td> 
    </tr>
    <!-- END LOOP photogalsimages -->
</table>
<!-- END OPTION photogalsimages -->